#!/usr/bin/env python 
#-*- coding:utf-8 -*-
li1 = ["dwqdw",253123,[45,45241,8545,54646],'dsasd',32131,['ewqeqw','ewqeqer','rqwrqq'],234556]
#方法1（就是用祁祥志那个方法2，也就是不用索引来）
for i  in li1:
    if type(i) == list:
        for j in i:
            if type(j) == int:
                print(j)
#方法2（定义函数+递归，现在还没学）
def judge_int(a_list):
    for i in a_list:
        if type(i) == int:
            print(i)
        elif type(i) == list :
            judge_int(i)
judge_int(li1)